package com.mes.material.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mes.common.core.annotation.Excel;
import com.mes.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 库存管理对象 mes_material_stock
 * 
 * @author itflash
 * @date 2025-02-27
 */
public class MaterialStock extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 物料编码 */
    @Excel(name = "物料编码")
    private String materialCode;

    /** 仓库位置 */
    @Excel(name = "仓库位置")
    private String warehouse;

    /** 批次号 */
    @Excel(name = "批次号")
    private String batchNo;

    /** 入库数量 */
    @Excel(name = "入库数量")
    private Long stockIn;

    /** 出库数量 */
    @Excel(name = "出库数量")
    private Long stockOut;

    /** 当前库存数量 */
    @Excel(name = "当前库存数量")
    private Long currentStock;

    /** 更新时间 */
    private Date updateDate;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMaterialCode(String materialCode) 
    {
        this.materialCode = materialCode;
    }

    public String getMaterialCode() 
    {
        return materialCode;
    }
    public void setWarehouse(String warehouse) 
    {
        this.warehouse = warehouse;
    }

    public String getWarehouse() 
    {
        return warehouse;
    }
    public void setBatchNo(String batchNo) 
    {
        this.batchNo = batchNo;
    }

    public String getBatchNo() 
    {
        return batchNo;
    }
    public void setStockIn(Long stockIn) 
    {
        this.stockIn = stockIn;
    }

    public Long getStockIn() 
    {
        return stockIn;
    }
    public void setStockOut(Long stockOut) 
    {
        this.stockOut = stockOut;
    }

    public Long getStockOut() 
    {
        return stockOut;
    }
    public void setCurrentStock(Long currentStock) 
    {
        this.currentStock = currentStock;
    }

    public Long getCurrentStock() 
    {
        return currentStock;
    }
    public void setUpdateDate(Date updateDate) 
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() 
    {
        return updateDate;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("materialCode", getMaterialCode())
            .append("warehouse", getWarehouse())
            .append("batchNo", getBatchNo())
            .append("stockIn", getStockIn())
            .append("stockOut", getStockOut())
            .append("currentStock", getCurrentStock())
            .append("remark", getRemark())
            .append("updateDate", getUpdateDate())
            .append("createDate", getCreateDate())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
